<?php

#doc
#	classname:	BookingController
#	scope:		PUBLIC
#
#/doc

class BookingController extends Controller
{
	#	internal variables
	var $classes;
	#	Constructor
	function __construct (  )
	{
		$this->useModel("booking");
		Classloader::getInstance()->loadPlugin('Menu');
		Menu::getInstance()->addMenuEntry("listAll", Utility::buildUrl("Booking", "listAll"));
	}
	###

	public function listAll ()
	{
		$this->bookings = $this->booking->findAll();
	}

	public function show()
	{
		$this->booking->find($_GET['id']);
	}

}
###

?>